package com.nwpu.am.mapper;

import com.nwpu.am.pojo.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * PermissionMapper
 *
 * @author Roy
 * @version 1.0
 * {@code @date} 2024/6/5
 */

@Mapper
public interface PermissionMapper {
    /**
     * 根据用户名获取权限
     *
     * @param username
     * @return
     */
    List<Permission> findByUsername(String username);
}
